Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding test for opensearch_security.multitenancy.enabled disabled #653

Conversation

abhivka7
Copy link
Contributor

@abhivka7 abhivka7 commented May 5, 2023

Description

We are adding a new cypress test to check if Dashboards tenancy features are disabled when opensearch_security.multitenancy.enabled is disabled in the opensearchdashboard.yaml file.

Issues Resolved

Cypress tests for PR: opensearch-project/security-dashboards-plugin#1419

Check List

  • [✅ ] Commits are signed per the DCO using --signoff

Testing video:

unaccessible_tenancy_feature.js.mp4

Testing by running cypress test from Security-Dashboards plugin;
https://github.com/opensearch-project/security-dashboards-plugin/actions/runs/4894295743/jobs/8738346716

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
@@ -0,0 +1,25 @@
/*
Copy link
Member

@cwperks cwperks May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abhivka7 Where is the setup for this test? Is it set to multi-tenancy disabled by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will be done through workflow in Security Dashboards plugin. Here is the commit: opensearch-project/security-dashboards-plugin@b70c248

PR: https://github.com/opensearch-project/security-dashboards-plugin/pull/1419/commits

Copy link

@stephen-crawford stephen-crawford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you should add a part of the test where the feature is also enabled? Is it possible to show the feature going from enabled to disabled or vice versa? I am not familiar very familiar with these test setups so I don't know whether it can persist a state across the config change or not.

@abhivka7
Copy link
Contributor Author

abhivka7 commented May 5, 2023

Do you think you should add a part of the test where the feature is also enabled? Is it possible to show the feature going from enabled to disabled or vice versa? I am not familiar very familiar with these test setups so I don't know whether it can persist a state across the config change or not.

@scrawfor99 The tests added here: #609 take care of case where the feature is enabled. Switching tenant didn't work as it would require a node startup.

@peterzhuamazon
Copy link
Member

Need backports?

@abhivka7
Copy link
Contributor Author

abhivka7 commented May 5, 2023

Need backports?

@peterzhuamazon I am not sure. These tests for now should run for 2.7

@ohltyler ohltyler merged commit e601884 into opensearch-project:main May 5, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 5, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit e601884)
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 5, 2023
Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit e601884)
CCongWang pushed a commit that referenced this pull request May 5, 2023
…) (#655)

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit e601884)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
CCongWang pushed a commit that referenced this pull request May 5, 2023
…) (#654)

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit e601884)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
leanneeliatra pushed a commit to leanneeliatra/opensearch-dashboards-functional-test-fork that referenced this pull request Sep 15, 2023
…ensearch-project#653) (opensearch-project#655)

Signed-off-by: Abhi Kalra <abhivka@amazon.com>
Co-authored-by: Abhi Kalra <abhivka@amazon.com>
(cherry picked from commit e601884)

Co-authored-by: Abhi Kalra <99718513+abhivka7@users.noreply.github.com>
Signed-off-by: leanne.laceybyrne@eliatra.com <leanne.laceybyrne@eliatra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants